package com.ruoyi.storage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库区管理对象 warehouse_zone
 * 
 * @author 庞一恺
 * @date 2025-01-09
 */
public class WarehouseZone extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，库区id */
    private Integer areaId;

    /** 仓库id，外键 */
    private Integer warehouseId;

    /** 库区名称 */
    @Excel(name = "库区名称")
    private String name;

    /** 负责人 */
    @Excel(name = "负责人")
    private Integer principal;

    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setWarehouseId(Integer warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Integer getWarehouseId()
    {
        return warehouseId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrincipal(Integer principal)
    {
        this.principal = principal;
    }

    public Integer getPrincipal()
    {
        return principal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("areaId", getAreaId())
            .append("warehouseId", getWarehouseId())
            .append("name", getName())
            .append("principal", getPrincipal())
            .toString();
    }
}
